#include "drv_window.h"
#include "oled.h"

extern int line;

void drv_window1_line1(void)
{
	line = 0;
	OLED_Clear();
	OLED_ShowChinese(30,0,0,16,1);//住
	OLED_ShowChinese(48,0,1,16,1);//户
	OLED_ShowChinese(66,0,2,16,1);//管
	OLED_ShowChinese(84,0,3,16,1);//理
	
	OLED_ShowChinese(0,16,6,12,0);//住
	OLED_ShowChinese(12,16,7,12,0);//户
	OLED_ShowChar(24,16,49,12,0);//1
	OLED_ShowChar(72,16,50,12,0);//2
	OLED_ShowChar(78,16,52,12,0);//4
	OLED_ShowChar(84,16,48,12,0);//0
	OLED_ShowChar(90,16,49,12,0);//1
	
	OLED_ShowChinese(0,28,6,12,1);//住
	OLED_ShowChinese(12,28,7,12,1);//户
	OLED_ShowChar(24,28,50,12,1);//2
	OLED_ShowChar(72,28,50,12,1);//2
	OLED_ShowChar(78,28,52,12,1);//4
	OLED_ShowChar(84,28,48,12,1);//0
	OLED_ShowChar(90,28,50,12,1);//2
	
	OLED_ShowChinese(0,40,6,12,1);//住
	OLED_ShowChinese(12,40,7,12,1);//户
	OLED_ShowChar(24,40,51,12,1);//3
	OLED_ShowChar(72,40,50,12,1);//2
	OLED_ShowChar(78,40,52,12,1);//4
	OLED_ShowChar(84,40,48,12,1);//0
	OLED_ShowChar(90,40,51,12,1);//3
	
	OLED_Refresh();
}

void drv_window1_line2(void)
{
	line = 1;
	OLED_Clear();
	OLED_ShowChinese(30,0,0,16,1);//住
	OLED_ShowChinese(48,0,1,16,1);//户
	OLED_ShowChinese(66,0,2,16,1);//管
	OLED_ShowChinese(84,0,3,16,1);//理
	
	OLED_ShowChinese(0,16,6,12,1);//住
	OLED_ShowChinese(12,16,7,12,1);//户
	OLED_ShowChar(24,16,49,12,1);//1
	OLED_ShowChar(72,16,50,12,1);//2
	OLED_ShowChar(78,16,52,12,1);//4
	OLED_ShowChar(84,16,48,12,1);//0
	OLED_ShowChar(90,16,49,12,1);//1
	
	OLED_ShowChinese(0,28,6,12,0);//住
	OLED_ShowChinese(12,28,7,12,0);//户
	OLED_ShowChar(24,28,50,12,0);//2
	OLED_ShowChar(72,28,50,12,0);//2
	OLED_ShowChar(78,28,52,12,0);//4
	OLED_ShowChar(84,28,48,12,0);//0
	OLED_ShowChar(90,28,50,12,0);//2
	
	OLED_ShowChinese(0,40,6,12,1);//住
	OLED_ShowChinese(12,40,7,12,1);//户
	OLED_ShowChar(24,40,51,12,1);//3
	OLED_ShowChar(72,40,50,12,1);//2
	OLED_ShowChar(78,40,52,12,1);//4
	OLED_ShowChar(84,40,48,12,1);//0
	OLED_ShowChar(90,40,51,12,1);//3
	
	OLED_Refresh();


}
void drv_window1_line3(void)
{
	line = 2;
	OLED_Clear();
	OLED_ShowChinese(30,0,0,16,1);//住
	OLED_ShowChinese(48,0,1,16,1);//户
	OLED_ShowChinese(66,0,2,16,1);//管
	OLED_ShowChinese(84,0,3,16,1);//理
	
	OLED_ShowChinese(0,16,6,12,1);//住
	OLED_ShowChinese(12,16,7,12,1);//户
	OLED_ShowChar(24,16,49,12,1);//1
	OLED_ShowChar(72,16,50,12,1);//2
	OLED_ShowChar(78,16,52,12,1);//4
	OLED_ShowChar(84,16,48,12,1);//0
	OLED_ShowChar(90,16,49,12,1);//1
	
	OLED_ShowChinese(0,28,6,12,1);//住
	OLED_ShowChinese(12,28,7,12,1);//户
	OLED_ShowChar(24,28,50,12,1);//2
	OLED_ShowChar(72,28,50,12,1);//2
	OLED_ShowChar(78,28,52,12,1);//4
	OLED_ShowChar(84,28,48,12,1);//0
	OLED_ShowChar(90,28,50,12,1);//2
	
	OLED_ShowChinese(0,40,6,12,0);//住
	OLED_ShowChinese(12,40,7,12,0);//户
	OLED_ShowChar(24,40,51,12,0);//3
	OLED_ShowChar(72,40,50,12,0);//2
	OLED_ShowChar(78,40,52,12,0);//4
	OLED_ShowChar(84,40,48,12,0);//0
	OLED_ShowChar(90,40,51,12,0);//3
	
	OLED_Refresh();


}
void drv_window_root_line1(void)
{
	line = 0;
	OLED_Clear();
	OLED_ShowChinese(30,0,27,16,1);//管
	OLED_ShowChinese(48,0,28,16,1);//理
	OLED_ShowChinese(66,0,29,16,1);//员
	OLED_ShowChinese(84,0,21,16,1);//界
	OLED_ShowChinese(102,0,22,16,1);//面
	
	OLED_ShowChinese(0,16,30,12,0);//查
	OLED_ShowChinese(12,16,31,12,0);//询
	OLED_ShowChinese(24,16,6,12,0);//住
	OLED_ShowChinese(36,16,7,12,0);//户
	OLED_ShowChinese(48,16,32,12,0);//状
	OLED_ShowChinese(60,16,33,12,0);//态

	OLED_ShowChinese(0,28,34,12,1);//修
	OLED_ShowChinese(12,28,35,12,1);//改
	OLED_ShowChinese(24,28,36,12,1);//密
	OLED_ShowChinese(36,28,37,12,1);//码
	OLED_Refresh();

}

void drv_window_root_line2(void)
{
	line = 1;
	OLED_Clear();
	OLED_ShowChinese(30,0,27,16,1);//管
	OLED_ShowChinese(48,0,28,16,1);//理
	OLED_ShowChinese(66,0,29,16,1);//员
	OLED_ShowChinese(84,0,21,16,1);//界
	OLED_ShowChinese(102,0,22,16,1);//面
	
	OLED_ShowChinese(0,16,30,12,1);//查
	OLED_ShowChinese(12,16,31,12,1);//询
	OLED_ShowChinese(24,16,6,12,1);//住
	OLED_ShowChinese(36,16,7,12,1);//户
	OLED_ShowChinese(48,16,32,12,1);//状
	OLED_ShowChinese(60,16,33,12,1);//态

	OLED_ShowChinese(0,28,34,12,0);//修
	OLED_ShowChinese(12,28,35,12,0);//改
	OLED_ShowChinese(24,28,36,12,0);//密
	OLED_ShowChinese(36,28,37,12,0);//码
	OLED_Refresh();

}

void drv_window_user_line1(void)
{
	line = 0;
	OLED_Clear();
	OLED_ShowChinese(30,0,0,16,1);//住
	OLED_ShowChinese(46,0,1,16,1);//户
	OLED_ShowChinese(62,0,21,16,1);//界
	OLED_ShowChinese(78,0,22,16,1);//面
	
	OLED_ShowChinese(0,16,30,12,0);//查
	OLED_ShowChinese(12,16,31,12,0);//询
	OLED_ShowChinese(24,16,6,12,0);//住
	OLED_ShowChinese(36,16,7,12,0);//户
	OLED_ShowChinese(48,16,32,12,0);//状
	OLED_ShowChinese(60,16,33,12,0);//态

	OLED_ShowChinese(0,28,34,12,1);//修
	OLED_ShowChinese(12,28,35,12,1);//改
	OLED_ShowChinese(24,28,36,12,1);//密
	OLED_ShowChinese(36,28,37,12,1);//码
	OLED_Refresh();

}

void drv_window_user_line2(void)
{
	line = 1;
	OLED_Clear();
	OLED_ShowChinese(30,0,0,16,1);//住
	OLED_ShowChinese(46,0,1,16,1);//户
	OLED_ShowChinese(62,0,21,16,1);//界
	OLED_ShowChinese(78,0,22,16,1);//面
	
	OLED_ShowChinese(0,16,30,12,1);//查
	OLED_ShowChinese(12,16,31,12,1);//询
	OLED_ShowChinese(24,16,6,12,1);//住
	OLED_ShowChinese(36,16,7,12,1);//户
	OLED_ShowChinese(48,16,32,12,1);//状
	OLED_ShowChinese(60,16,33,12,1);//态

	OLED_ShowChinese(0,28,34,12,0);//修
	OLED_ShowChinese(12,28,35,12,0);//改
	OLED_ShowChinese(24,28,36,12,0);//密
	OLED_ShowChinese(36,28,37,12,0);//码
	OLED_Refresh();

}

